package src.com.zt.demo.interface_extends_demo.objects_demo;

public class Computer {//电脑

    public static void main(String[] args) {
        pad ipad = new pad();
        Lenvopad lenvopad = new Lenvopad();

        System.out.println("Pad是否继承Computer:"+ (ipad instanceof Computer));
        System.out.println("Pad是否继承Computer:"+ (lenvopad instanceof Computer));
        System.out.println("Pad是否继承Computer:"+ (lenvopad instanceof pad));
        //System.out.println("Pad是否继承Computer:"+ (Computer instanceof Doctor));
    }
}

class pad extends Computer{ //平板电脑

}

class Lenvopad extends pad{ //联想平板电脑

}

